
package main
import "fmt"

func main(){
	//第一种：
	var arr1 [3]int = [3]int{1,3,5}
	fmt.Println(arr1)
	//第二种
	var arr2 = [3]int{3,5,7}
	fmt.Println(arr2)
	//第三种
	var arr3 = [...]int{5,7,9}
	fmt.Println(arr3)
	//第四种
	var arr4 = [...]int{2:99,0:88,1:55,7:66}
	fmt.Println(arr4)
}